package com.jy.service;

import com.jy.model.*;

import java.util.List;
import java.util.Map;

/**
    * MoneyManageDaoSerivce类
    * Tue May 09 15:12:04 GMT+08:00 2017 zzp
    */ 


public interface MoneyManageService{
		//增加流程
		boolean insertMoneyApply(MoneyManage mm, String realname, String dbUser);
	   /**
		* 查询用户
		* @param name
		* @return
		*/
	   List<User> getUsers(String name);

    List<MoneyManage> moneyList(Integer rows,Integer page,String token,String  project_name);

	MoneyManage getsingMoneyApplyInfo(String id);

    List<Comment> getComment(String processId);

	List<MoneyManage> getTaskMoney(Integer state, Integer size, String token);
	int getTaskMoneyCount(String token);
	List<String> getTaskPvm(String taskid);

	MoneyManage getsingTaskMoney(String id);

    int updateSHR(MoneyManage mm);

	int updateJiafang(String jopen_bank, String jaccount_name, String jaccount_number, String id);

	int updateStatus(String id, int i);

	int updatePass(String userId,String pocessId, Map<String, Object> variables, String commons, String id, String token, String btnName, String dbUser);

    List<MoneyManage> guiJiList(Integer state, Integer size, String token);

    MoneyManage getsingGuiJi(String id);
	List<Comment> getCommentInfo(String processId);
	//轨迹明细列表
	List<MoneyGuiJi> getLiuChengGuiJi(Integer start, Integer length, String proId);

	//保存文件
	int saveFilename(List<MoneyFile> list);
	//获取用户权限
	Integer[] getUserRote(String id, String custormer);
	/**
	 * 查看图片
	 */
	List <MoneyFile>getImgS(String moneyId);

	/**
	 * 撤销流程
	 */
	int iscx(String id,String process_id,String realname,String userId);
	/**
	 * @param id
	 * @return 请假发起---提交请假申请 将状态改为1（审核中）
	 * pocessId 流程实例id
	 * id 主键id
	 * dbUser  下一执行人
	 *
	 */
	public boolean updateState(String pocessId,Map<String,Object> variables,String id,String dbUser,String realname,String cl_time,String userId);
	/**
	 * 合同编号去重
	 * @param mm
	 * @return
	 */
	List<MoneyManage> searchApply(MoneyManage mm);
}
